﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ComicBookApp.Db
{
    public static class Seeder
    {
        public static void Seed(
            ApplicationDbContext db,
            bool seedComicBooks = true,
            bool seedCharacters = true,
            bool seedArtists = true,
            bool seedArtistsComicBook = true
            )
        {
            if (seedComicBooks)
            {
                db.ComicBooks.AddOrUpdate(p => p.Title,
                    new ComicBookApp { Title = "Uncanny X-Men", Image = "http://3.bp.blogspot.com/-6sjmoRxSf8U/TgJFgLoLcSI/AAAAAAAADoA/vXIUGG8_o94/s1600/mutantgenesis.jpg" }

                    );

            }
        }
    }
}
